package com.fangmu.transferdata;

import com.fangmu.transferdata.utils.UsbHelper;
import com.github.mjdev.libaums.UsbMassStorageDevice;
import com.github.mjdev.libaums.fs.UsbFile;

import java.util.ArrayList;

/**
 * @author created by lyl
 * @data 2022/4/6.
 * @description
 */
public class MainConstract {

    public interface View {

        void setUDiskStatus(String msg);
        void setUDiskList(ArrayList<UsbFile> usbFiles);
    }

    public interface Presenter {

        /**
         * 获取U盘列表
         * @param deviceList
         * @param usbHelper
         */
        void getUDiskList(UsbMassStorageDevice[] deviceList, UsbHelper usbHelper);

        /**
         * 每次都判断返回的数据是否为空
         * @param msg
         * @return
         */
        boolean judgeDataLength(String msg);
    }
}
